package com.tankbattle.stage;

import com.tankbattle.utils.GetResource;

import java.awt.Color;
import java.awt.Graphics;

import javax.swing.ImageIcon;
import javax.swing.JPanel;

public class GameOver extends JPanel implements GetResource {

    ImageIcon gameOverImage = new ImageIcon(getResource("img/gameOver.png"));

    public GameOver() {
        this.setSize(599, 520);
        this.setOpaque(true);
    }

    @Override
    public void paintComponent(Graphics g) {
        super.paintComponent(g);
        this.setBackground(Color.BLACK);
        g.drawImage(gameOverImage.getImage(), 149, 156, this);
    }
}
